package com.itheima.domain;


import java.io.Serializable;

public class Book implements Serializable {
    private Integer id;
    private String bookName;
    private String author;
    private String company;
    private Double price;
    private Integer kind_id;

    public Book() {
    }

    public Book(Integer id, String bookName, String author, String company, Double price, Integer kind_id) {
        this.id = id;
        this.bookName = bookName;
        this.author = author;
        this.company = company;
        this.price = price;
        this.kind_id = kind_id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getKind_id() {
        return kind_id;
    }

    public void setKind_id(Integer kind_id) {
        this.kind_id = kind_id;
    }

    @Override
    public String toString() {
        return "Book{" +
                "id=" + id +
                ", bookName='" + bookName + '\'' +
                ", author='" + author + '\'' +
                ", company='" + company + '\'' +
                ", price=" + price +
                ", kind_id=" + kind_id +
                '}';
    }
}
